package chapter.second;

import java.util.AbstractSet;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumSet;
import java.util.List;

public class CreateObject {
	
	Boolean bo = true;
	
	Collections x = null;
	
	ArrayList a = null;
	
	public static void main(String[] args) {
		assert 2==2;
		ArrayList l = new ArrayList<Integer>();
		l.add(2);
		l.add(3);
		l.add(5);
		l.add(1);
		l.add(4);
		Collections.sort(l, new Comparator<Integer>(){
			public int compare(Integer o1, Integer o2) {
				return o1-o2;
			}
		});
		System.out.println(l);
		
	}

}
